import type {tdInfo, tdItem} from './model/trademarkType'
import mine from '@/utils/http/mine'

// 获取品牌数据
export const getTrademarkInfo = (page:number,limit:number) =>{
    return mine.get<any,tdInfo>(`/admin/product/baseTrademark/${page}/${limit}`)
}

// 增加或更新品牌数据
export const reqUpDateTd = (tdItem:tdItem) => {
    return mine.put<any,null>('/admin/product/baseTrademark/update',tdItem)
}

export const reqAddTd = (tdItem:tdItem) => {
    return mine.post<any,null>('/admin/product/baseTrademark/save',tdItem)
}

// 删除品牌
export const reMoveTd = (id:number) => {
    return mine.delete<any,null>(`/admin/product/baseTrademark/remove/${id}`)
}